package mygame;

import base.ScriptLoader;
import com.jme3.app.SimpleApplication;
import com.jme3.app.state.AppState;
import com.jme3.renderer.RenderManager;

/**
 * test
 * @author normenhansen
 */
public class Main extends SimpleApplication {
    
    public static void main(String[] args) {
        Main app = new Main(new MenuState());
        //AppSettings settings = new AppSettings(true);
        //settings.setUseJoysticks(true);
        //app.setSettings(settings);
        app.start();
    }

    public Main(AppState... appstates) {
        super(appstates);
    }
    
    @Override
    public void simpleInitApp() {
        //assetManager.registerLocator("/Resources/Skills/", ClasspathLocator.class);
        assetManager.registerLoader(ScriptLoader.class, "js");
    }

    @Override
    public void simpleUpdate(float tpf) {
    }

    @Override
    public void simpleRender(RenderManager rm) {
    }
}
